import service from '@/util/request'

// 查询所有报销
export function getAllAccount() {
    return service({
        url: '/account/getAll',
        method: 'get'
    })
}

// 添加报销信息
export function addAccount(data) {
    return service({
        url: '/account/add',
        method: 'post',
        data,
    })
}

// 模糊查询报销信息
export function likeAccount(data) {
    return service({
        url: '/account/like',
        method: 'post',
        data,
    })
}

// 删除报销信息
export function removeAccount(id) {
    return service({
        url: '/account/delete/' + id,
        method: 'get'
    })
}

// 修改报销信息
export function editAccount(data) {
    return service({
        url: '/account/edit',
        method: 'post',
        data
    })
}